package com.sfh.base.mvp;

/**
 * 功能描述:activity 与 Fragemnt 生命周期 回调
 *
 * @date 2017/7/6
 */
public interface ILifeCycle {

    interface Event {

        int ON_CREATE = 0x0001;

        int ON_START = 0x0002;

        int ON_RESUME = 0x0003;

        int ON_PAUSE = 0x0004;

        int ON_STOP = 0x0005;

        int ON_FINISH = 0x0006;

        int ON_DESTROY = 0x0007;
    }

    /**
     * 生命周期回调
     */
    void onLifecycleEvent(IView listener, int event);

}
